package com.stox.client.embedded;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.stox.client.ExchangeClient;
import com.stox.manager.ExchangeManager;
import com.stox.model.Exchange;

@Component
public class EmbeddedExchangeClient implements ExchangeClient {

	@Autowired
	private ExchangeManager exchangeManager;
	
	public List<Exchange> findByCountryCode(String countryCode) {
		return exchangeManager.findByCountryCode(countryCode);
	}

}
